<template>
  <div class="dashboard-container">
    <div class="dashboard-text">labelData:</div>
    <el-button @click.native.prevent="LabelGetInfo">标签</el-button>
  </div>
</template>

<script>

import { getInfo } from '@/api/customer'

export default {
  name: 'IndexGetInfo',
  methods: {
    LabelGetInfo() {
      this.$store.dispatch('LabelGetInfo').then(() => {
        console.log('over')
      })
      return getInfo().then(response => {
        console.log('LabelGetInfo')
        const data = response.data
        return data
      })
    }
  }
}
</script>
